export enum Direction {
  RIGHT = 'RIGHT',
  LEFT = 'LEFT',
  UP = 'UP',
  DOWN = 'DOWN'
}

export enum Status {
  MOVED = 'MOVED',
  ATE = 'ATE',
  COLLIDED = 'COLLIDED',
  INITIALIZED = 'INITIALIZED'
}

export function convertToGrid(index: number, width: number) {
  return {
    row: Math.floor(index / width),
    column: index % width
  }
}
